package com.cyz.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyz.common.bean.Role;
import com.cyz.common.dto.ChangeRoleStatusDto;
import com.cyz.common.dto.RoleDto;
import com.cyz.common.utils.R;

import java.util.List;

/**
* @author 34928
* @description 针对表【role(角色信息表)】的数据库操作Service
* @createDate 2023-02-23 08:41:47
*/
public interface RoleService extends IService<Role> {

    R queryRoles();

    R updateRoleStatus(ChangeRoleStatusDto crd);

    R updateRoles(RoleDto roleDto);

    R addRole(RoleDto roleDto);

    R deleteRoles(Integer[] ids);

    List<String> queryRolesById(Integer userId);

    R queryRolesAndMenuIds();
}
